package com.jeesite.modules.kj.api.vo.response;

import com.jeesite.modules.kj.entity.KjActivity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.beans.BeanUtils;

@Data
public class ActivityDetailResponseVo extends ActivityResponseVo{


    @ApiModelProperty(value = "轮播图")
    private String banner;

    @ApiModelProperty(value = "活动内容")
    private String content;

    @ApiModelProperty(value = "联系人")
    private String leader;

    @ApiModelProperty(value = "联系电话")
    private String leaderPhone;


    @ApiModelProperty(value = "群二维码")
    private String groupQrcode;


    @ApiModelProperty(value = "是否点赞")
    private String isLike;

    public ActivityDetailResponseVo() {
    }

    public ActivityDetailResponseVo(KjActivity kjActivity) {
        BeanUtils.copyProperties(kjActivity, this);
        if(this.content != null){
            this.content.replace("<p><br/></p>", "<br /><br />");
        }
    }
}
